from django.urls import path
from news import views


app_name = 'news'
# 当前应用命名,当多个app里面都有index路径的时候,
# html模板需要配置url时,用来找到具体app的index路径
# html中:
# <a href = " {url 'news:index' }"></a>
urlpatterns =[
    path('index/',views.index,name='index'),
    path('news_detail/',views.news_detail,name='news_detail'),
    path('search/',views.search,name='search'),
]